
 
 F u n c t i o n :   i s N o d e ( o b j e c t T o T e s t ,   w i n d o w O b j e c t ,   d o c u m e n t O b j e c t ,   n u m b e r N o d e T y p e 1 ,   n u m b e r N o d e T y p e 2 ,   e t c . ) 
 
 
 
 D e s c r i p t i o n :   C h e c k s   i f   t h e   s p e c i f i e d   o b j e c t   i s   a   v a l i d   D O M   n o d e   o r   d o c u m e n t   o b j e c t . 
 
 
 
 R e t u r n s :   T r u e   i f   y e s ,   F a l s e   o t h e r w i s e . 
 
 
 
 N o t e :   T h e   b a s i c   u s a g e   w h e r e   o n l y   t h e   f i r s t   p a r a m e t e r   i s   p o p u l a t e d ,   w i l l   c h e c k   i f   t h e   s p e c i f i e d   o b j e c t   i s   a   s t a n d a r d   D O M   n o d e   ( i n s t a n c e o f   E l e m e n t ) .   I f   w i n d o w   i s   p a s s e d   a s   t h e   s e c o n d   p a r a m e t e r ,   i t   w i l l   c h e c k   i f   t h e   o b j e c t   i s   e i t h e r   a   s t a n d a r d   D O M   n o d e   o r   a   w i n d o w   o b j e c t .   I f   w i n d o w . d o c u m e n t   i s   p a s s e d   a s   t h e   t h i r d   p a r a m e t e r ,   i t   w i l l   c h e c k   f o r   t h a t   d o c u m e n t   o b j e c t   t y p e   a s   w e l l .   T h e   f o u r t h   p a r a m e t e r   c a n   b e   u s e d   t o   s p e c i f y   a   s p e c i f i c   n o d e T y p e   v a l u e   t o   c h e c k   f o r   a s   w e l l ,   s u c h   a s   1 1   t o   r e t u r n   t r u e   i f   a   d o c u m e n t   f r a g m e n t   i s   d e t e c t e d .   A n y   n u m b e r   o f   n o d e T y p e   v a l u e s   c a n   b e   c h e c k e d   f o r   a s   w e l l   b y   a d d i n g   t h e s e   a s   a d d i t i o n a l   p a r a m e t e r s   a f t e r   t h e   f o u r t h   p a r a m e t e r .   T h e   o n l y   r e q u i r e d   p a r a m e t e r   i s   t h e   f i r s t   o n e ,   h o w e v e r . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   C h e c k   i f   t h e   s p e c i f i e d   o b j e c t   i s   a   s t a n d a r d   D O M   n o d e   ( i n s t a n c e o f   E l e m e n t ) . 
 
 v a r   c o n f i r m   =   $ A . i s N o d e ( o b j e c t T o T e s t ) ; 
 
 
 
 / /   C h e c k   i f   t h e   s p e c i f i e d   o b j e c t   i s   e i t h e r   a   s t a n d a r d   D O M   n o d e   o r   a   d o c u m e n t   f r a g m e n t   o b j e c t . 
 
 v a r   c o n f i r m   =   $ A . i s N o d e ( o b j e c t T o T e s t ,   n u l l ,   n u l l ,   1 1 ) ; 
 
 
 
 / /   C h e c k   i f   t h e   s p e c i f i e d   o b j e c t   i s   a   s t a n d a r d   D O M   n o d e ,   a   d o c u m e n t   o b j e c t ,   o r   a   d o c u m e n t   f r a g m e n t   o b j e c t . 
 
 v a r   c o n f i r m   =   $ A . i s N o d e ( o b j e c t T o T e s t ,   n u l l ,   d o c u m e n t ,   1 1 ) ; 
 
 
 
 / /   C h e c k   i f   t h e   s p e c i f i e d   o b j e c t   i s   a   s t a n d a r d   D O M   n o d e ,   a   d o c u m e n t   o b j e c t ,   a   d o c u m e n t   f r a g m e n t   o b j e c t ,   o r   a   t e x t   n o d e   o b j e c t . 
 
 v a r   c o n f i r m   =   $ A . i s N o d e ( o b j e c t T o T e s t ,   n u l l ,   d o c u m e n t ,   1 1 ,   3 ) ; 
 
 
 
 / /   C h e c k   i f   t h e   s p e c i f i e d   o b j e c t   i s   a   s t a n d a r d   D O M   n o d e ,   a   w i n d o w   o b j e c t ,   o r   a   d o c u m e n t   o b j e c t . 
 
 v a r   c o n f i r m   =   $ A . i s N o d e ( o b j e c t T o T e s t ,   w i n d o w ,   d o c u m e n t ) ; 
 
 